﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace backend.Models;

public partial class FailureDatum
{
    [Key]
    [Column("FD_ID")]
    [StringLength(8)]
    [Unicode(false)]
    public string FdId { get; set; } = null!;

    [Column("FD_Year")]
    public int FdYear { get; set; }

    [Column("FD_Month")]
    public int FdMonth { get; set; }

    [Column("F_ID")]
    [StringLength(8)]
    [Unicode(false)]
    public string FId { get; set; } = null!;

    [Column("FC_ID")]
    [StringLength(8)]
    [Unicode(false)]
    public string FcId { get; set; } = null!;

    [Column("FD_Times")]
    public int FdTimes { get; set; }

    [ForeignKey("FId")]
    [InverseProperty("FailureData")]
    public virtual Failure FIdNavigation { get; set; } = null!;

    [ForeignKey("FcId")]
    [InverseProperty("FailureData")]
    public virtual FirstClass Fc { get; set; } = null!;
}
